import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('tb_sys_role', {
  comment: '系统角色表',
})
export class SysRole {
  @PrimaryGeneratedColumn('increment', { comment: '自增主键', unsigned: true })
  id: number;

  @Column({ comment: '角色名称' })
  name: string;

  @Column({ comment: '角色标识', unique: true })
  mark: string;

  @Column({ comment: '角色介绍' })
  description: string;
}
